<?php
class ClassModel extends Model
{
    public function selectClass()
    {
        return $this->select();
    }

    public function findClass($id)
    {
        return $this->where('id=' . $id)->find();
    }

    public function insertClass($data)
    {
        return $this->insert($data);
    }

    public function updateClass($data)
    {
        return $this->update($data);
    }

    public function deleteClass($id)
    {
        return $this->where('id=' . $id)->delete();
    }

    public function before()
    {
        return $_POST;
    }

    /** 返回当前模型的表名
     * @return mixed
     */
    public function table()
    {
        return 'class';
    }
}